package drds.data_propagate.common.zookeeper.running;

import drds.data_propagate.common.utils.ToStringStyle;

import java.io.Serializable;

/**
 * 服务端running状态信息
 *
 * @author jianghang 2012-11-22 下午03:11:30
 * @version 1.0.0
 */
public class ServerRunningData implements Serializable {

    private static final long serialVersionUID = 92260481691855281L;

    private Long cid;
    private String address;
    private boolean active = true;

    public ServerRunningData() {
    }

    public ServerRunningData(Long cid, String address) {
        this.cid = cid;
        this.address = address;
    }

    public Long getCid() {
        return cid;
    }

    public void setCid(Long cid) {
        this.cid = cid;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String toString() {
        return ToStringStyle.toString(this);
    }

}
